import request from '@/util/request.js'

export const getCourseAPI = function (params = {}) {
  return request.get('/admin/course', {
    params
  })
}

export const deleteCourseAPI = function (params = {}) {
  return request.delete('/admin/course', {
    params
  })
}

export const addCourseAPI = function (data = {}) {
  // 注意 axios 的各个类型请求方法的参数数量和位置
  return request.post('/admin/course', data)
}
export const updateCourseAPI = function (data = {}) {
  // 注意 axios 的各个类型请求方法的参数数量和位置
  return request.put('/admin/course', data)
}

